package com.youpai.platform.vulture.service.support;

import java.util.concurrent.ThreadFactory;
import net.openhft.affinity.AffinityStrategies;
import net.openhft.affinity.AffinityThreadFactory;

/**
 * @date: 2023/2/24 13:20
 * @author: Welles
 * @version: 1.0
 */
public class ThreadFactorySupport {

    // 线程工厂
    private static final AffinityThreadFactory THREAD_FACTORY_ANY = new AffinityThreadFactory("task-sdk-java",
            AffinityStrategies.ANY);

    public static ThreadFactory getAnyModelThreadFactory() {
        return THREAD_FACTORY_ANY;
    }
}
